//
//  ZoomingScrollView.h
//  ZHPhotoBrowser
//
//  Created by Michael Waterfall on 14/10/2010.
//  Copyright 2010 d3i. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ZHMWPhotoProtocol.h"
#import "ZHMWTapDetectingImageView.h"
#import "ZHMWTapDetectingView.h"

@class ZHPhotoBrowser, ZHMWPhoto, ZHMWCaptionView;

@interface ZHMWZoomingScrollView : UIScrollView <UIScrollViewDelegate, ZHMWTapDetectingImageViewDelegate, ZHMWTapDetectingViewDelegate> {

}

@property () NSUInteger index;
@property (nonatomic) id <ZHMWPhoto> photo;
@property (nonatomic, weak) ZHMWCaptionView *captionView;
@property (nonatomic, weak) UIButton *selectedButton;
@property (nonatomic, weak) UIButton *playButton;

- (id)initWithPhotoBrowser:(ZHPhotoBrowser *)browser;
- (void)displayImage;
- (void)displayImageFailure;
- (void)setMaxMinZoomScalesForCurrentBounds;
- (void)prepareForReuse;
- (BOOL)displayingVideo;
- (void)setImageHidden:(BOOL)hidden;

@end
